<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="修改退车" bodyClass="white-bg" libs=["prism","bootstrapSelect","ueditor"]/>
<div class="wrapper wrapper-content ibox-content">
    <@form.form id="form-backcar-edit"  class="form-horizontal">
    <input name="id" value="${bpmCrmBackcar.id}" type="hidden">
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售员" />：
        </label>
        <div class="col-sm-8"><input name="saleUserid" value="${bpmCrmBackcar.saleUserid}" class="form-control" type="text" readonly="true">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售订单编号" />：
        </label>
        <div class="col-sm-8"><input name="saleOrderNumber" value="${bpmCrmBackcar.saleOrderNumber}" class="form-control" type="text" readonly="true">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "车辆识别号" />：
        </label>
        <div class="col-sm-8"><input name="outCarVin" value="${bpmCrmBackcar.outCarVin}" class="form-control" type="text" readonly="true">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "车型" />：
        </label>
        <div class="col-sm-8"><input name="outCarVehicle" value="${bpmCrmBackcar.outCarVehicle}" class="form-control" type="text" readonly="true">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><@ctx.i18n text = "原因"/>：</label>
        <div class="col-sm-8">
            <textarea name="outCarReason" class="form-control" readonly="true">${bpmCrmBackcar.outCarReason}</textarea>
        </div>
    </div>

<#if bpmCrmBackcar.processStatus==1 >
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "经理审批"/>：</label>
        <div class="col-sm-8">
            <@form.radio name="salesDirectorReview" dictType="sys_bpm_crm_passorclose" />
        </div>

    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "审核备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="salesReviewMemo" class="form-control" required></textarea>
        </div>
    </div>
</#if>
<#if bpmCrmBackcar.processStatus!=1 >
<div class="form-group">
    <label class="col-sm-3 control-label"><@ctx.i18n text = "经理审批"/>：</label>
    <div class="col-sm-8">
        <@form.radio name="salesDirectorReview" dictType="sys_bpm_crm_passorclose" value="${bpmCrmBackcar.salesDirectorReview}" readOnly="true" />
    </div>

</div>
<div class="form-group">
    <label class="col-sm-3 control-label"><@ctx.i18n text = "审核备注"/>：</label>
    <div class="col-sm-8">
        <textarea name="salesReviewMemo" class="form-control" readonly="true">${bpmCrmBackcar.salesReviewMemo}</textarea>
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label"><@ctx.i18n text = "库管-盘点"/>：</label>
    <div class="col-sm-8">
        <@form.radio name="warehouseInventoryReview" dictType="sys_bpm_crm_passorclose" value="${bpmCrmBackcar.warehouseInventoryReview}" readOnly="true" />
    </div>

</div>
<div class="form-group">
    <label class="col-sm-3 control-label"><@ctx.i18n text = "库管-审核备注"/>：</label>
    <div class="col-sm-8">
        <textarea name="warehouseReviewMemo" class="form-control" readonly="true">${bpmCrmBackcar.warehouseReviewMemo}</textarea>
    </div>
</div>

<div class="form-group">
    <label class="col-sm-3 control-label"><@ctx.i18n text = "库管-估价金额" />：
    </label>
    <div class="col-sm-8"><input name="warehouseAppraisalAmount" value="${bpmCrmBackcar.warehouseAppraisalAmount}" class="form-control" type="text" readonly="true">
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label"><@ctx.i18n text = "库管-退车成本" />：
    </label>
    <div class="col-sm-8"><input name="warehouseReturnCost" value="${bpmCrmBackcar.warehouseReturnCost}" class="form-control" type="text" readonly="true">
    </div>
</div>
<div class="form-group">
    <label class="col-sm-3 control-label"><@ctx.i18n text = "销售总监最终审核"/>：</label>
    <div class="col-sm-8">
        <@form.radio name="salesDirectorFinalReview" dictType="sys_bpm_crm_passorclose" value="${bpmCrmBackcar.salesDirectorFinalReview}" readOnly="true"/>
    </div>

</div>
<div class="form-group">
    <label class="col-sm-3 control-label"><@ctx.i18n text = "销售总监最终审核备注"/>：</label>
    <div class="col-sm-8">
        <textarea name="salesDirectorFinalMemo" class="form-control" readonly="true">${bpmCrmBackcar.salesDirectorFinalMemo}</textarea>
    </div>
</div>
</#if>


</@form.form>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "bpm/backcar";
    $("#form-backcar-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.save(prefix + "/edit", $('#form-backcar-edit').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>
